﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Configuration;
using System.Data.SqlClient;

namespace edu.Comm
{
    public class ConnFactory
    {
        private static readonly string constr = ConfigurationManager.ConnectionStrings["edu"].ConnectionString;
        public static DbConnection GetConnection()
        {
            return new SqlConnection(constr);
        }
    }
}
